#ifndef __VMD_H__
#define __VMD_H__
/////////////////
//include
/////////////////
#include<Windows.h>
#include"../CXBurst/Array.h"
#include"Vector3D.h"
#include<string>
#include<map>
#include<hash_map>
#include"../CXBurst/Array.h"
#include"PMD.h"
/////////////////
//const
/////////////////

/////////////////
//class
/////////////////
struct VmmdHeader
{
	char header[30];
	char name[20];
	
};
struct VmdMotion
{
	char bone_name[15];
	DWORD frame_no;
	Vector3D pos;
	float rot[4];
	BYTE interplation[64];
};
class DeviceContext;

class VMD
{
public:
	VMD(const std::string& motion_name);
	~VMD();
	void SetMotion(PMD::BoneInfo* info,Matrix* pos_mat, int info_num, int flame_count);
	VmmdHeader header;
	std::map<std::string,Array<VmdMotion>> bone_motions;
	int GetMaxCount();
	//std::map<std::string,Array<XMMATRIX>>
private:
	int max_count;

};
#endif __VMD_H__
